﻿using MQTT.Chat.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace MQTT.Chat.ViewModel
{
    public class LoginViewModel
    {
        public CommandBase ClosWindowCommand { get; set; }

        public LoginViewModel()
        {
            ClosWindowCommand = new CommandBase();
            ClosWindowCommand.DoExecute = new Action<object>((o) =>
            {
                (o as Window).Close();
            });
            ClosWindowCommand.DoCanExecute = new Func<object, bool>((o) => { return true; });
        }
    }
}
